<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>AI网文小说创作助手 - 原型展示</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" rel="stylesheet">
    <style>
        body {
            font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
            background-color: #f5f7fa;
        }
        .prototype-container {
            display: grid;
            grid-template-columns: 1fr;
            gap: 30px;
            padding: 20px;
        }
        .prototype-frame {
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            background-color: white;
        }
        .prototype-title {
            padding: 10px 15px;
            background-color: #4f46e5;
            color: white;
            font-weight: 600;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        iframe {
            width: 100%;
            height: 800px;
            border: none;
        }
        .controls {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 100;
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            padding: 15px;
        }
        .view-mode-btn {
            padding: 8px 12px;
            border-radius: 4px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
        }
        .view-mode-btn.active {
            background-color: #4f46e5;
            color: white;
        }
        .view-mode-btn:not(.active) {
            background-color: #e5e7eb;
            color: #374151;
        }
        .view-mode-btn:not(.active):hover {
            background-color: #d1d5db;
        }
    </style>
</head>
<body>
    <header class="bg-indigo-600 text-white p-4 sticky top-0 z-50">
        <div class="container mx-auto">
            <h1 class="text-2xl font-bold">AI网文小说创作助手 - 原型展示</h1>
            <p class="text-sm mt-1">高保真原型界面，用于开发参考</p>
        </div>
    </header>

    <div class="controls">
        <div class="flex gap-2 mb-3">
            <button id="fullscreen-mode" class="view-mode-btn active">全屏模式</button>
            <button id="grid-mode" class="view-mode-btn">网格模式</button>
        </div>
        <div class="text-sm text-gray-500">
            <p>当前显示: <span id="current-view">全屏模式</span></p>
        </div>
    </div>

    <div class="container mx-auto py-6">
        <div class="prototype-container" id="prototype-container">
            <!-- 首页/登录页 -->
            <div class="prototype-frame">
                <div class="prototype-title">
                    <span>首页/登录页</span>
                    <a href="pages/home.html" target="_blank" class="text-white hover:text-gray-200">
                        <i class="fas fa-external-link-alt"></i>
                    </a>
                </div>
                <iframe src="pages/home.html"></iframe>
            </div>

            <!-- 小说列表页 -->
            <div class="prototype-frame">
                <div class="prototype-title">
                    <span>小说列表页</span>
                    <a href="pages/novel-list.html" target="_blank" class="text-white hover:text-gray-200">
                        <i class="fas fa-external-link-alt"></i>
                    </a>
                </div>
                <iframe src="pages/novel-list.html"></iframe>
            </div>

            <!-- 类型/频道选择页 -->
            <div class="prototype-frame">
                <div class="prototype-title">
                    <span>类型/频道选择页</span>
                    <a href="pages/genre-selection.html" target="_blank" class="text-white hover:text-gray-200">
                        <i class="fas fa-external-link-alt"></i>
                    </a>
                </div>
                <iframe src="pages/genre-selection.html"></iframe>
            </div>

            <!-- 故事梗概输入页 -->
            <div class="prototype-frame">
                <div class="prototype-title">
                    <span>故事梗概输入页</span>
                    <a href="pages/story-outline.html" target="_blank" class="text-white hover:text-gray-200">
                        <i class="fas fa-external-link-alt"></i>
                    </a>
                </div>
                <iframe src="pages/story-outline.html"></iframe>
            </div>

            <!-- 故事要素细化页 -->
            <div class="prototype-frame">
                <div class="prototype-title">
                    <span>故事要素细化页</span>
                    <a href="pages/inspiration-generation.html" target="_blank" class="text-white hover:text-gray-200">
                        <i class="fas fa-external-link-alt"></i>
                    </a>
                </div>
                <iframe src="pages/inspiration-generation.html"></iframe>
            </div>

            <!-- 章节大纲生成页 -->
            <div class="prototype-frame">
                <div class="prototype-title">
                    <span>章节大纲生成页</span>
                    <a href="pages/chapter-outline.html" target="_blank" class="text-white hover:text-gray-200">
                        <i class="fas fa-external-link-alt"></i>
                    </a>
                </div>
                <iframe src="pages/chapter-outline.html"></iframe>
            </div>

            <!-- 章节细纲生成页 -->
            <div class="prototype-frame">
                <div class="prototype-title">
                    <span>章节细纲生成页</span>
                    <a href="pages/detailed-outline.html" target="_blank" class="text-white hover:text-gray-200">
                        <i class="fas fa-external-link-alt"></i>
                    </a>
                </div>
                <iframe src="pages/detailed-outline.html"></iframe>
            </div>

            <!-- 小说正文生成页 -->
            <div class="prototype-frame">
                <div class="prototype-title">
                    <span>小说正文生成页</span>
                    <a href="pages/content-generation.html" target="_blank" class="text-white hover:text-gray-200">
                        <i class="fas fa-external-link-alt"></i>
                    </a>
                </div>
                <iframe src="pages/content-generation.html"></iframe>
            </div>

            <!-- 小说查看页 -->
            <div class="prototype-frame">
                <div class="prototype-title">
                    <span>小说查看页</span>
                    <a href="pages/novel-view.html" target="_blank" class="text-white hover:text-gray-200">
                        <i class="fas fa-external-link-alt"></i>
                    </a>
                </div>
                <iframe src="pages/novel-view.html"></iframe>
            </div>

            <!-- 小说编辑页 -->
            <div class="prototype-frame">
                <div class="prototype-title">
                    <span>小说编辑页</span>
                    <a href="pages/novel-edit.html" target="_blank" class="text-white hover:text-gray-200">
                        <i class="fas fa-external-link-alt"></i>
                    </a>
                </div>
                <iframe src="pages/novel-edit.html"></iframe>
            </div>

            <!-- 个人中心页 -->
            <div class="prototype-frame">
                <div class="prototype-title">
                    <span>个人中心页</span>
                    <a href="pages/profile.html" target="_blank" class="text-white hover:text-gray-200">
                        <i class="fas fa-external-link-alt"></i>
                    </a>
                </div>
                <iframe src="pages/profile.html"></iframe>
            </div>
        </div>
    </div>

    <footer class="bg-gray-800 text-white p-4 mt-8">
        <div class="container mx-auto text-center">
            <p>© 2023 AI网文小说创作助手 - 原型设计</p>
        </div>
    </footer>

    <script>
        document.addEventListener('DOMContentLoaded', function() {
            const container = document.getElementById('prototype-container');
            const fullscreenBtn = document.getElementById('fullscreen-mode');
            const gridBtn = document.getElementById('grid-mode');
            const currentView = document.getElementById('current-view');
            
            // 全屏模式
            fullscreenBtn.addEventListener('click', function() {
                container.style.gridTemplateColumns = '1fr';
                fullscreenBtn.classList.add('active');
                gridBtn.classList.remove('active');
                currentView.textContent = '全屏模式';
            });
            
            // 网格模式
            gridBtn.addEventListener('click', function() {
                container.style.gridTemplateColumns = 'repeat(auto-fill, minmax(900px, 1fr))';
                gridBtn.classList.add('active');
                fullscreenBtn.classList.remove('active');
                currentView.textContent = '网格模式';
            });
            
            // 初始化为全屏模式
            fullscreenBtn.click();
        });
    </script>
</body>
</html> 